From e00491d73c5fc14ee338ed024196ac3eb8ee6566 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 28 Nov 2000 13:05:50 +0000 Subject: [PATCH] (delete-horizontal-space): Handle fields more generally. --- lisp/simple.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 13020a98a52..5331bcd52c6 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -332,9 +332,8 @@ Leave one space or none, according to the context." (defun delete-horizontal-space () "Delete all spaces and tabs around point." (interactive "*") - (skip-chars-backward " \t") - (let ((start (max (minibuffer-prompt-end) (point)))) - (delete-region start (progn (skip-chars-forward " \t") (point))))) + (skip-chars-backward " \t" (field-beginning)) + (delete-region (point) (progn (skip-chars-forward " \t") (point)))) (defun just-one-space () "Delete all spaces and tabs around point, leaving one space." -- 2.30.2